package com.imooc.o2o.util;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import java.util.Date;

@Controller
public class MyimerTask {
    @Scheduled(cron = "0/2 * * * * ?")
    public void test1(){
        System.out.println("job1 "+new Date().getTime());
    }
}
